#ifndef _ANIMATED_SPRITE_H_
#define _ANIMATED_SPRITE_H_

#include "SpriteBased.h"
#include "AnimationProfile.h"

class Map;

class AnimatedSprite:public SpriteBased
{
friend class Map;
public:
	AnimatedSprite(const SQChar* path, const AnimationProfile& animationProfile, float speed);
	virtual ~AnimatedSprite(){};
	void animate();
private:
	float speed,frame;
	unsigned int frameCount;
	const AnimationProfile& animProfile;
};

#endif